home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 22 / AACD 22.iso / AACD / Programming / powerd / modules.lha / modules / hardware / blit.m < prev    next >
Encoding:
Text File  |  2000-11-18  |  1.4 KB  |  62 lines

  1. #define HSIZEBITS  6
  2. #define VSIZEBITS  16-HSIZEBITS
  3. #define HSIZEMASK  $3f          
  4. #define VSIZEMASK  $3FF       
  5. #define ABC     $80
  6. #define ABNC    $40
  7. #define ANBC    $20
  8. #define ANBNC   $10
  9. #define NABC    $8
  10. #define NABNC   $4
  11. #define NANBC   $2
  12. #define NANBNC  $1
  13. #define A_OR_B       ABC|ANBC|NABC | ABNC|ANBNC|NABNC
  14. #define A_OR_C       ABC|NABC|ABNC | ANBC|NANBC|ANBNC
  15. #define A_XOR_C    NABC|ABNC   | NANBC|ANBNC
  16. #define A_TO_D       ABC|ANBC|ABNC|ANBNC
  17. #define BC0B_DEST  8
  18. #define BC0B_SRCC  9
  19. #define BC0B_SRCB    10
  20. #define BC0B_SRCA  11
  21. #define BC0F_DEST  $100
  22. #define BC0F_SRCC  $200
  23. #define BC0F_SRCB  $400
  24. #define BC0F_SRCA  $800
  25. #define BC1F_DESC    2         
  26. #define DEST  $100
  27. #define SRCC  $200
  28. #define SRCB  $400
  29. #define SRCA  $800
  30. #define ASHIFTSHIFT   12      
  31. #define BSHIFTSHIFT   12      
  32. #define LINEMODE      $1
  33. #define FILL_OR       $8
  34. #define FILL_XOR      $10
  35. #define FILL_CARRYIN  $4
  36. #define ONEDOT          $2      
  37. #define OVFLAG          $20
  38. #define SIGNFLAG      $40
  39. #define BLITREVERSE   $2
  40. #define SUD          $10
  41. #define SUL          $8
  42. #define AUL          $4
  43. #define OCTANT8    24
  44. #define OCTANT7    4
  45. #define OCTANT6    12
  46. #define OCTANT5    28
  47. #define OCTANT4    20
  48. #define OCTANT3    8
  49. #define OCTANT2    0
  50. #define OCTANT1    16
  51.  
  52. OBJECT bltnode
  53.     n:PTR TO bltnode,
  54.     function:PTR TO LONG,
  55.     stat:UBYTE,
  56.     blitsize:WORD,
  57.     beamsync:WORD,
  58.     cleanup:PTR TO LONG
  59.  
  60. #define CLEANUP  $40
  61. #define CLEANME  CEANUP
  62.